<% content_for :sidebar do %>

  <h3><%= t("configurations") %></h3>
  <br class="clear" />

  <ul class="sidebar">
    <%= hook :admin_configurations_sidebar_menu do %>
				  <% if current_user.has_role? "admin"%>
    <li<%== ' class="active"' if controller.controller_name == 'general_settings' %>><%= link_to t("general_settings"), admin_general_settings_path %></li>
    <li<%== ' class="active"' if controller.controller_name == 'payment_methods' %>><%= link_to t("store_registration_payment_method"), store_registration_payment_method_path%></li>
		<%end%>
		<% unless current_user.has_role? "admin"%>
		<li<%== ' class="active"' if controller.controller_name == 'domain_customizes' %>><%= link_to t("custom_domain"), admin_domain_customizes_path %></li>
    <li<%== ' class="active"' if controller.controller_name == 'tax_categories' %>><%= link_to t("tax_categories"), admin_tax_categories_path %></li>
    <li<%== ' class="active"' if controller.controller_name == 'zones' %>><%= link_to t("zones"), admin_zones_path %></li>
       <%end%>		
	 <li<%== ' class="active"' if controller.controller_name == 'mail_methods' %>><%= link_to t("mail_methods"), admin_mail_methods_path %></li>
    <li<%== ' class="active"' if controller.controller_name == 'states' %>><%= link_to t("states"), admin_country_states_path(Spree::Config[:default_country_id]) %></li>
				  <% unless current_user.has_role? "admin"%>
    <li<%== ' class="active"' if controller.controller_name == 'payment_methods' %>><%= link_to t("payment_methods"), admin_payment_methods_path %></li>
    <li<%== ' class="active"' if ['taxonomies', 'taxons'].include? controller.controller_name %>><%= link_to t("taxonomies"), admin_taxonomies_path %></li>
    <li<%== ' class="active"' if controller.controller_name == 'shipping_methods' %>><%= link_to t("shipping_methods"), admin_shipping_methods_path %></li>
    <li<%== ' class="active"' if controller.controller_name == 'inventory_settings' %>><%= link_to t("inventory_settings"), admin_inventory_settings_path %></li>
    <% end %>
    <li<%== ' class="active"' if controller.controller_name == 'trackers' %>><%= link_to t("analytics_trackers"), admin_trackers_path %></li>
    <% end %>
    <li<%== ' class="active"' if controller.controller_name == 'configurations' %>><%= link_to t("complete_list"), admin_configurations_path %></li>
  </ul>

<% end %>
